
<script language="javascript">
$(document).ready(function() {ldelim}	
	// Validation	
	$('a#btn_submit').click(function() {ldelim}		   
	   var oEditor = FCKeditorAPI.GetInstance('short_description');	  
	   var oEditor1 = FCKeditorAPI.GetInstance('description');	   
	   
	   if ($('input#title').val()==''){ldelim}
		   alert('{$_MSS_NEWS_TITLE}');
		   $('input#title').focus();
		   return false;
	  {rdelim} else if (oEditor.GetXHTML()==''){ldelim}
		   alert('{$_MSS_NEWS_S_DESC}');
		   oEditor.Focus();
		   return false;
	   {rdelim}  else if (oEditor1.GetXHTML()==''){ldelim}
		   alert('{$_MSS_NEWS_DESC}');
		   oEditor1.Focus();
		   return false;
	   {rdelim} else {ldelim}
	   		alert("Data saved.");
		   $('form#frmNews').submit();		   
	   {rdelim}
	{rdelim});
{rdelim});
</script>

<!-- Content Area -->
<div id="content"> 
  
  <!-- Component Title -->
  <div class="pagetitle icon-48-module">
    <h2>Manager: ADD TESTIMONIALS</h2>
  </div>
  
  <!-- System Messages -->
  
  <div id="system-message-container"> {if isset($msg)}
    <dl id="system-message">
      <dt class="message">Message</dt>
      <dd class="message message">
        <ul>
          <li>{$msg}</li>
        </ul>
      </dd>
    </dl>
    {/if} </div>
  
  <!-- Sub Menu Navigation -->
  <div class="subheader">
    <h3 class="element-invisible">Sub Menu</h3>
    <div id="no-submenu"></div>
  </div>
  
  <!-- Toolbar Icon Buttons -->
  <div class="actionbar-box">
    <div class="module">
      <h3>Toolbar</h3>
      <div class="actionbar-list" id="actionbar">
        <ul>
          <li id="actionbar-apply"> <a href="#" onclick="#" id='btn_submit' class="actionbar"> <span class="icon-32-apply"> </span> Save </a> </li>
          <li id="actionbar-cancel"> <a href="{$link_list_testimonials}" class="actionbar"> <span class="icon-32-cancel"> </span> Close </a> </li>
        </ul>
        <div class="clr"></div>
      </div>
    </div>
    <div class="clr"></div>
  </div>
  
  <!-- Beginning of Actual Content -->
  <div id="element-box">
    <div class="t">
      <div class="t">
        <div class="t"></div>
      </div>
    </div>
    <div class="m">
      <div id="acy_content" >
        
            <table width="100%" border="0" cellspacing="1" cellpadding="5" class="table_form">
           <form action="{$link_save_testimonials}" method="post" id="frmNews" name="frmNews" enctype="multipart/form-data">
               <tr>
                 <td width="150" align="right">{$_CATEGORY}</td>
                 <td><select name="category_id" id="category_id">
                {html_options options=$cats}
                 </select> 
                   &nbsp;&nbsp;&nbsp;&nbsp;<a href="{$link_add_cat}">{$_ADD_CATEGORY}</a>                  
                   </td>
               </tr>
               <tr>
                 <td width="150" align="right">{$_TITLE}</td>
                 <td><input name="title" type="text" class="textinput" id="title" style="width:600px;" /></td>
               </tr>
               <tr>
                 <td width="150" align="right" valign="top">{$_SHORT_DESCRIPTION}</td>
                 <td><label for="textarea"></label>
                 {ckeditor name='short_description' id='short_description' value='' height='150' toolbar='Basic'} </td>
               </tr>
               <tr>
                 <td width="150" align="right" valign="top">{$_CONTENT}</td>
                 <td>{ckeditor name='description' id='description' value='' height='300' toolbar='Basic'}</td>
               </tr>
               <tr>
                 <td width="150" align="right">&nbsp;</td>
                 <td><input name="hot_news" type="checkbox" id="hot_news" value="1" /> 
                 {$_HIGHTLIGHT}</td>
               </tr>
               <tr>
                 <td width="150" align="right">{$_PUBLISHED}</td>
                 <td><select name="publish" id="publish">
                   <option value="1">{$_YES}</option>
                   <option value="0">{$_NO}</option>
                 </select></td>
               </tr>

               <input type="hidden" name="url" value="{$path_upload_file}"  />
               </form>
             </table>       
        
        
      </div>
      <!--  AcyMailing Component powered by http://www.acyba.com --> 
      
      <!-- version Starter : 3.7.0 -->
      <div class="clr"></div>
    </div>
    <div class="b">
      <div class="b">
        <div class="b"></div>
      </div>
    </div>
  </div>
  <!-- end of element-box -->
  
  <noscript>
  Warning! JavaScript must be enabled for proper operation of the Administrator backend.
  </noscript>
  <div class="clr"></div>
</div>        


